﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HighDiveAdmin.Resources;

namespace HighDiveAdmin.Engine
{
    /// <summary>
    ///Data Class that holds data for a judge.
    /// </summary>
    public class Judge : Person
    {
        #region Properties
        /// <summary>
        ///IdString used for identification when a score is updated by the judge.
        /// </summary>
        public  string IdString { get; set; }
        public  string IpAdress { get; set; }
        public int JudgeNumber { get; set; }
        public int? DbId { get; set; }

        #endregion

        #region Constructors

        /// <summary>
        /// 
        /// </summary>
        /// <param name="idNumber"></param>
        /// <param name="firstName"></param>
        /// <param name="lastName"></param>
        /// <param name="gender"></param>
        /// <param name="idString"></param>
        /// <param name="address"></param>
        /// <param name="club"></param>
        /// <param name="email"></param>
        public Judge(string idNumber, string firstName, string lastName, Gender gender, int judgeNumber, string idString = null, string address = null, string club = null,
            string email = null) : base(idNumber, firstName, lastName, gender, address, club, email)
        {
            IdString = idString;
            JudgeNumber = judgeNumber;
            IpAdress = null;
            PersonDbId = null;
            DbId = null;
        }

        public Judge()
        {
            
        }

        #endregion
    }
}
